From: Timm Bäder Date: Wed, 3 Jan 2018 14:01:12 +0000 (+0100) Subject: liststore: Make a code snippet compile X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~65^2~38^2~76 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=6e197ffac975c983456d9ad109e14d0982e300ba;p=gtk%2B3.0.git liststore: Make a code snippet compile --- diff --git a/gtk/gtkliststore.c b/gtk/gtkliststore.c index 8bf3eb19cd..39388ef401 100644 --- a/gtk/gtkliststore.c +++ b/gtk/gtkliststore.c @@ -2164,8 +2164,17 @@ gtk_list_store_has_default_sort_func (GtkTreeSortable *sortable) * `gtk_list_store_insert_with_values (list_store, iter, position...)` * has the same effect as calling * |[ - * gtk_list_store_insert (list_store, iter, position); - * gtk_list_store_set (list_store, iter, ...); + * static void + * insert_value (GtkListStore *list_store, + * GtkTreeIter *iter, + * int position) + * { + * gtk_list_store_insert (list_store, iter, position); + * gtk_list_store_set (list_store, + * iter + * // ... + * ); + * } * ]| * with the difference that the former will only emit a row_inserted signal, * while the latter will emit row_inserted, row_changed and, if the list store